public ControllerMock(String userId) { OwnerId = userId; CommandQueue = new DummyCommandQueue(); RegionRepository = new DummyRegionRepository(); SessionRepository = new DummySessionRepository(); UserRepository = new DummyUserRepository(); WorldRepository = new DummyWorldRepository(); NationRepository = new DummyNationRepository(SessionRepository, RegionRepository); CreateControllers(); }
public ControllerAzure(String developmentStorageAccountConnectionString, String worldDefinitionPath, String userId) { OwnerId = userId; UserRepository = new DummyUserRepository(); AzureCommandQueue = new CommandQueue(developmentStorageAccountConnectionString); AzureNationRepository = new NationRepository(developmentStorageAccountConnectionString); AzureRegionRepository = new RegionRepository(developmentStorageAccountConnectionString, worldDefinitionPath); AzureSessionRepository = new SessionRepository(developmentStorageAccountConnectionString); AzureWorldRepository = new WorldRepository(developmentStorageAccountConnectionString); CreateControllers(); }