public static IEntryService SetupEntryService() { var entryRepository = new Mock<IEntryRepository>(); var locationRepository = new Mock<ILocationRepository>(); var tagRepository = new Mock<ITagRepository>(); var timeLineServiceStub = new Mock<ITimelineColorService>(); var timeServiceStub = new Mock<ITimeService>(); var scopeStub = new Mock<IScope>(); var entryService = new EntryService( entryRepository.Object, locationRepository.Object, tagRepository.Object, timeLineServiceStub.Object, timeServiceStub.Object, scopeStub.Object); return entryService; }
protected override void ExecuteTest() { try { var service = new EntryService(userEntryProvider); actualModel = service.Get(EntryRequest.Create(suppliedLocalEducationAgencyId, suppliedSchoolId)); } catch (Exception ex) { actualException = ex; } }
protected override void ExecuteTest() { var service = new EntryService(userEntryProvider); actualUrl = service.Get(EntryRequest.Create(suppliedLocalEducationAgencyId, null)); }