Click here to Skip to main content
15,499,289 members
Home / Discussions / C#
   

C#

 
Questiontag clipboard text Pin
Jassim Rahma27-Jul-14 12:59
MemberJassim Rahma27-Jul-14 12:59 
AnswerRe: tag clipboard text Pin
Garth J Lancaster27-Jul-14 14:20
professionalGarth J Lancaster27-Jul-14 14:20 
Questionhow do i get a table in gridview according to combobox fields? Pin
Sajeev Unni27-Jul-14 8:29
MemberSajeev Unni27-Jul-14 8:29 
AnswerRe: how do i get a table in gridview according to combobox fields? Pin
Pete O'Hanlon27-Jul-14 9:09
mvaPete O'Hanlon27-Jul-14 9:09 
AnswerRe: how do i get a table in gridview according to combobox fields? Pin
Swinkaran28-Jul-14 20:09
professionalSwinkaran28-Jul-14 20:09 
QuestionMVC unit testing Pin
Marsh8727-Jul-14 4:09
MemberMarsh8727-Jul-14 4:09 
AnswerRe: MVC unit testing Pin
Pete O'Hanlon27-Jul-14 4:41
mvaPete O'Hanlon27-Jul-14 4:41 
AnswerRe: MVC unit testing Pin
Marsh8727-Jul-14 9:52
MemberMarsh8727-Jul-14 9:52 
Thank you for your reply;Is this what you meant by Initialization:
XML
private Mock<IRaceRepository> _mockRepository;
       private ModelStateDictionary _modelState;
       private IRaceService _service;

       [TestInitialize]
       public void Initialize()
       {
           _mockRepository = new Mock<IRaceRepository>();
           _modelState = new ModelStateDictionary();
           _service = new RaceServiceRepository(new ModelStateWrapper(_modelState), _mockRepository.Object);
       }


Unfortunately it still gives me Object not set to an instance on an object error
GeneralRe: MVC unit testing Pin
Pete O'Hanlon27-Jul-14 11:02
mvaPete O'Hanlon27-Jul-14 11:02 
GeneralRe: MVC unit testing Pin
Dave Kreskowiak27-Jul-14 11:03
mveDave Kreskowiak27-Jul-14 11:03 
GeneralRe: MVC unit testing Pin
User 571134828-Jul-14 1:54
MemberUser 571134828-Jul-14 1:54 
QuestionMouse set in the form Pin
PozzaVecia27-Jul-14 2:47
MemberPozzaVecia27-Jul-14 2:47 
AnswerRe: Mouse set in the form Pin
Pete O'Hanlon27-Jul-14 2:53
mvaPete O'Hanlon27-Jul-14 2:53 
GeneralRe: Mouse set in the form Pin
PozzaVecia27-Jul-14 3:13
MemberPozzaVecia27-Jul-14 3:13 
AnswerRe: Mouse set in the form Pin
OriginalGriff27-Jul-14 3:34
mveOriginalGriff27-Jul-14 3:34 
AnswerRe: Mouse set in the form Pin
User 873938131-Jul-14 0:44
MemberUser 873938131-Jul-14 0:44 
GeneralProblem with Windows forms monthcalendar control Pin
Member 1094245026-Jul-14 20:17
MemberMember 1094245026-Jul-14 20:17 
GeneralRe: Problem with Windows forms monthcalendar control Pin
OriginalGriff26-Jul-14 22:33
mveOriginalGriff26-Jul-14 22:33 
GeneralRe: Problem with Windows forms monthcalendar control Pin
Pete O'Hanlon27-Jul-14 2:44
mvaPete O'Hanlon27-Jul-14 2:44 
GeneralRe: Problem with Windows forms monthcalendar control Pin
OriginalGriff27-Jul-14 3:29
mveOriginalGriff27-Jul-14 3:29 
GeneralRe: Problem with Windows forms monthcalendar control Pin
Member 1094245027-Jul-14 8:00
MemberMember 1094245027-Jul-14 8:00 
GeneralRe: Problem with Windows forms monthcalendar control Pin
OriginalGriff27-Jul-14 22:09
mveOriginalGriff27-Jul-14 22:09 
GeneralRe: Problem with Windows forms monthcalendar control Pin
Pete O'Hanlon26-Jul-14 22:34
mvaPete O'Hanlon26-Jul-14 22:34 
GeneralRe: Problem with Windows forms monthcalendar control Pin
OriginalGriff26-Jul-14 22:50
mveOriginalGriff26-Jul-14 22:50 
Questioncannot send text encryption via email Pin
KaKoten25-Jul-14 22:20
MemberKaKoten25-Jul-14 22:20 

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.