Click here to Skip to main content
15,881,204 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionWhat layers required for make asp.net core 2 project for prevent repeat data ? Pin
ahmed_sa2-Jan-19 21:53
ahmed_sa2-Jan-19 21:53 
AnswerRe: What layers required for make asp.net core 2 project for prevent repeat data ? Pin
Richard MacCutchan2-Jan-19 23:37
mveRichard MacCutchan2-Jan-19 23:37 
AnswerRe: What layers required for make asp.net core 2 project for prevent repeat data ? Pin
Vincent Maverick Durano3-Jan-19 22:35
professionalVincent Maverick Durano3-Jan-19 22:35 
AnswerRe: What layers required for make asp.net core 2 project for prevent repeat data ? Pin
James Walsh Jr12-Jan-19 5:47
professionalJames Walsh Jr12-Jan-19 5:47 
QuestionLossless Image compression Pin
Member 141024622-Jan-19 8:37
Member 141024622-Jan-19 8:37 
AnswerRe: Lossless Image compression Pin
Richard MacCutchan3-Jan-19 1:18
mveRichard MacCutchan3-Jan-19 1:18 
QuestionIs there any data mocking for calling Web API Put and post methods with C# Code Pin
simpledeveloper25-Dec-18 12:55
simpledeveloper25-Dec-18 12:55 
AnswerRe: Is there any data mocking for calling Web API Put and post methods with C# Code Pin
F-ES Sitecore30-Dec-18 5:41
professionalF-ES Sitecore30-Dec-18 5:41 
Mocking in tests is to replace the access of external resources with other things like hard-coded values so that you can test the business logic in your app independent of other things. So the short answer is that you would probably mock the entire web EmployeeController so that any code that calls the webapi would call your mocked controller instead.

If it is the controller itself you want to test then you would mock out the data access, in this case your EmployeeDataAccessLayer, so you could call the methods on your controller from a unit test without needing database access. However your controller methods don't really do anything, there is no logic in them, they just act as an interface to calls on the data access layer. So long story short, there is nothing here worth testing.
AnswerRe: Is there any data mocking for calling Web API Put and post methods with C# Code Pin
James Walsh Jr1-Jan-19 8:58
professionalJames Walsh Jr1-Jan-19 8:58 
AnswerRe: Is there any data mocking for calling Web API Put and post methods with C# Code Pin
James Walsh Jr12-Jan-19 5:50
professionalJames Walsh Jr12-Jan-19 5:50 
QuestionWant to learn React.Js Pin
simpledeveloper20-Dec-18 23:14
simpledeveloper20-Dec-18 23:14 
AnswerRe: Want to learn React.Js Pin
Nathan Minier26-Dec-18 2:45
professionalNathan Minier26-Dec-18 2:45 
AnswerRe: Want to learn React.Js Pin
jkirkerx3-Jan-19 14:00
professionaljkirkerx3-Jan-19 14:00 
Question.net 2 BindingSources to same DataTable Pin
rjto19-Dec-18 12:01
rjto19-Dec-18 12:01 
AnswerRe: .net 2 BindingSources to same DataTable Pin
David Mujica1-Jan-19 13:10
David Mujica1-Jan-19 13:10 
GeneralRe: .net 2 BindingSources to same DataTable Pin
rjto2-Jan-19 4:58
rjto2-Jan-19 4:58 
QuestionHow to move cursor to end of iframe contenteditable Pin
Member 1408886515-Dec-18 11:42
Member 1408886515-Dec-18 11:42 
QuestionHow to focus cursor at the end of iframe body content when page loads Pin
Member 1408886513-Dec-18 10:59
Member 1408886513-Dec-18 10:59 
AnswerRe: How to focus cursor at the end of iframe body content when page loads Pin
F-ES Sitecore13-Dec-18 23:35
professionalF-ES Sitecore13-Dec-18 23:35 
QuestionTwo Issues with Custom Control with ASP.NET Site Pin
Dominick Marciano11-Dec-18 11:31
professionalDominick Marciano11-Dec-18 11:31 
QuestionHow do I download files in background or do asynchronous process in MVC Pin
Member 140250634-Dec-18 15:39
Member 140250634-Dec-18 15:39 
AnswerRe: How do I download files in background or do asynchronous process in MVC Pin
F-ES Sitecore5-Dec-18 0:39
professionalF-ES Sitecore5-Dec-18 0:39 
AnswerRe: How do I download files in background or do asynchronous process in MVC Pin
Richard Deeming5-Dec-18 9:25
mveRichard Deeming5-Dec-18 9:25 
GeneralRe: How do I download files in background or do asynchronous process in MVC Pin
Member 140250636-Dec-18 19:45
Member 140250636-Dec-18 19:45 
AnswerRe: How do I download files in background or do asynchronous process in MVC Pin
Nitin S28-Dec-18 2:16
professionalNitin S28-Dec-18 2:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.