public CustomerListServiceTests()
        {
            var context       = TestEntityFactory.SetupContext();
            var entityFactory = TestEntityFactory.SetupEntityFactory(context);

            _service = new CustomerListService(entityFactory);
        }
Exemple #2
0
        public World()
        {
            Rng.Seed(0);

            Status = WorldStatus.Created;

            TagManager    = new TagManager <string>();
            GroupManager  = new GroupManager <string>();
            EntityFactory = new EntityFactory();
            EntityManager = new EntityManager();
            Log           = new GameLog();

            EntityManager.EntityAdded   += EntityManager_EntityAdded;
            EntityManager.EntityRemoved += EntityManager_EntityRemoved;

            ItemFactory.Init(EntityFactory);
            FeatureFactory.Init(EntityFactory);
            PersonFactory.Init(EntityFactory);
            TestEntityFactory.Init(EntityFactory);

            EntityFactory.Compile();

            MapFactory = new MapFactory(this);

            Calendar       = new Calendar();
            CalendarEntity = EntityManager.Create(new List <Component>
            {
                new ControllerComponent(Calendar, new AP(World.OneSecondInSpeed / 2))
            });

//			ActionProcessed += World_ActionProcessed;
        }
Exemple #3
0
        public CompanyServiceTests()
        {
            var context       = TestEntityFactory.SetupContext();
            var entityFactory = TestEntityFactory.SetupEntityFactory(context);

            _service = new CompanyService(entityFactory);
        }
Exemple #4
0
        public NPSReportingServiceTests()
        {
            var context       = TestEntityFactory.SetupContext();
            var entityFactory = TestEntityFactory.SetupEntityFactory(context);

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

            _validationProvider = new Mock <IValidationProvider>();

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

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