示例#1
0
        public CompanyServiceTests()
        {
            var context       = TestEntityFactory.SetupContext();
            var entityFactory = TestEntityFactory.SetupEntityFactory(context);

            _service = new CompanyService(entityFactory);
        }
        public CustomerListServiceTests()
        {
            var context       = TestEntityFactory.SetupContext();
            var entityFactory = TestEntityFactory.SetupEntityFactory(context);

            _service = new CustomerListService(entityFactory);
        }
示例#3
0
        public NPSReportingServiceTests()
        {
            var context       = TestEntityFactory.SetupContext();
            var entityFactory = TestEntityFactory.SetupEntityFactory(context);

            _service = new NPSReportingService(entityFactory);
        }
示例#4
0
        public CustomerCreationServiceTests()
        {
            _context = TestEntityFactory.SetupContext();
            var entityFactory = TestEntityFactory.SetupEntityFactory(_context);

            _validationProvider = new Mock <IValidationProvider>();

            _service = new CustomerCreationService(entityFactory, _validationProvider.Object);
        }
示例#5
0
        public VehicleServiceTests()
        {
            var context = TestEntityFactory.SetupContext();

            _vehicleService = new VehicleService(new VehicleRepository(context), new UnitOfWork(context));
        }
示例#6
0
 public RepositoryTests()
 {
     _context = TestEntityFactory.SetupContext();
 }
示例#7
0
 public ContextTests()
 {
     _context = TestEntityFactory.SetupContext();
 }