示例#1
0
        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;
        }
示例#2
0
 protected override void ExecuteTest()
 {
     try
     {
         var service = new EntryService(userEntryProvider);
         actualModel = service.Get(EntryRequest.Create(suppliedLocalEducationAgencyId, suppliedSchoolId));
     }
     catch (Exception ex)
     {
         actualException = ex;
     }
 }
示例#3
0
 protected override void ExecuteTest()
 {
     var service = new EntryService(userEntryProvider);
     actualUrl = service.Get(EntryRequest.Create(suppliedLocalEducationAgencyId, null));
 }