Click here to Skip to main content
15,886,873 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow to develop video chat in asp.net c# visual studio 2010? Pin
Member 115118355-May-15 5:53
Member 115118355-May-15 5:53 
General[REPOST] Pin
Sascha Lefèvre5-May-15 6:11
professionalSascha Lefèvre5-May-15 6:11 
QuestionCustomising Bootstrap NavBars Pin
xiecsuk5-May-15 0:37
xiecsuk5-May-15 0:37 
AnswerRe: Customising Bootstrap NavBars Pin
jkirkerx6-May-15 8:50
professionaljkirkerx6-May-15 8:50 
GeneralRe: Customising Bootstrap NavBars Pin
xiecsuk7-May-15 0:12
xiecsuk7-May-15 0:12 
GeneralRe: Customising Bootstrap NavBars Pin
jkirkerx7-May-15 7:26
professionaljkirkerx7-May-15 7:26 
QuestionCode Refactoring and Dependency Injection C# Pin
anshul02055-May-15 0:03
anshul02055-May-15 0:03 
AnswerRe: Code Refactoring and Dependency Injection C# Pin
F-ES Sitecore5-May-15 2:53
professionalF-ES Sitecore5-May-15 2:53 
Your code isn't really unit-testable as it stands. If you look at Microsoft Fakes you might be able to use that to mock your business layer as that can even mock static objects. If you want to do it "properly" then you'll need your BusinessLayer object to implement an interface (IBusinessLayer) and use inversion of control to pass an instance of your BusinessLayer or WorkQueueBEManager to your calling class. Rather than calling BusinessLayer.WorkQueueBEManager.GetItemByID(wqID) as you are now, you'll call the instance
BusinessEntity.WorkQueueBE be = this.businessLayer.WorkQueueBEManager.GetItemByID(wqID);

(where this.businessLayer is IBusinessLayer and populated via IoC) In your unit tests you then pass in a mocked version of BusinessLayer. If you google unit testing asp.net code you should find some specific examples of this stuff.
QuestionRe: Code Refactoring and Dependency Injection C# Pin
anshul02055-May-15 6:02
anshul02055-May-15 6:02 
AnswerRe: Code Refactoring and Dependency Injection C# Pin
Marjan Venema8-May-15 8:11
professionalMarjan Venema8-May-15 8:11 
QuestionJASON POST METHOD DOESNOT WORK WITH ASP.NET 2.0 FRAMEWORK BUT AFTER SETTING IT TO 3.5 IT WORKS.. Pin
HimenDev4-May-15 9:12
HimenDev4-May-15 9:12 
General[REPOST] Pin
Sascha Lefèvre4-May-15 10:49
professionalSascha Lefèvre4-May-15 10:49 
GeneralIs there any solution...? Pin
HimenDev4-May-15 18:39
HimenDev4-May-15 18:39 
AnswerRe: JASON POST METHOD DOESNOT WORK WITH ASP.NET 2.0 FRAMEWORK BUT AFTER SETTING IT TO 3.5 IT WORKS.. Pin
ZurdoDev5-May-15 4:00
professionalZurdoDev5-May-15 4:00 
GeneralRe: JASON POST METHOD DOESNOT WORK WITH ASP.NET 2.0 FRAMEWORK BUT AFTER SETTING IT TO 3.5 IT WORKS.. Pin
HimenDev5-May-15 19:20
HimenDev5-May-15 19:20 
GeneralRe: JASON POST METHOD DOESNOT WORK WITH ASP.NET 2.0 FRAMEWORK BUT AFTER SETTING IT TO 3.5 IT WORKS.. Pin
ZurdoDev6-May-15 1:51
professionalZurdoDev6-May-15 1:51 
GeneralRe: JASON POST METHOD DOESNOT WORK WITH ASP.NET 2.0 FRAMEWORK BUT AFTER SETTING IT TO 3.5 IT WORKS.. Pin
HimenDev6-May-15 19:20
HimenDev6-May-15 19:20 
AnswerRe: JASON POST METHOD DOESNOT WORK WITH ASP.NET 2.0 FRAMEWORK BUT AFTER SETTING IT TO 3.5 IT WORKS.. Pin
ZurdoDev7-May-15 2:00
professionalZurdoDev7-May-15 2:00 
GeneralRe: JASON POST METHOD DOESNOT WORK WITH ASP.NET 2.0 FRAMEWORK BUT AFTER SETTING IT TO 3.5 IT WORKS.. Pin
HimenDev7-May-15 2:24
HimenDev7-May-15 2:24 
AnswerRe: JASON POST METHOD DOESNOT WORK WITH ASP.NET 2.0 FRAMEWORK BUT AFTER SETTING IT TO 3.5 IT WORKS.. Pin
ZurdoDev7-May-15 2:34
professionalZurdoDev7-May-15 2:34 
GeneralRe: JASON POST METHOD DOESNOT WORK WITH ASP.NET 2.0 FRAMEWORK BUT AFTER SETTING IT TO 3.5 IT WORKS.. Pin
HimenDev7-May-15 2:37
HimenDev7-May-15 2:37 
GeneralRe: JASON POST METHOD DOESNOT WORK WITH ASP.NET 2.0 FRAMEWORK BUT AFTER SETTING IT TO 3.5 IT WORKS.. Pin
ZurdoDev7-May-15 2:49
professionalZurdoDev7-May-15 2:49 
GeneralRe: JASON POST METHOD DOESNOT WORK WITH ASP.NET 2.0 FRAMEWORK BUT AFTER SETTING IT TO 3.5 IT WORKS.. Pin
HimenDev7-May-15 2:56
HimenDev7-May-15 2:56 
GeneralRe: JASON POST METHOD DOESNOT WORK WITH ASP.NET 2.0 FRAMEWORK BUT AFTER SETTING IT TO 3.5 IT WORKS.. Pin
ZurdoDev7-May-15 2:57
professionalZurdoDev7-May-15 2:57 
GeneralRe: JASON POST METHOD DOESNOT WORK WITH ASP.NET 2.0 FRAMEWORK BUT AFTER SETTING IT TO 3.5 IT WORKS.. Pin
HimenDev7-May-15 3:08
HimenDev7-May-15 3:08 

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.