예제 #1
0
        public void CanCreateAgentTerrain()
        {
            const string agentterrain1 = "agentterrain2";
            var          agentterrain  = FactoryAgentTerrain.CreateAgentTerrain(agentterrain1);

            Assert.AreEqual(agentterrain.Name, agentterrain1);
            new RepositoryAgentTerrain().Save(agentterrain);
            new RepositoryAgentTerrain().Remove(agentterrain);
        }
        public void Write(string name, Sector sector)
        {
            var agentTerrain = FactoryAgentTerrain.CreateAgentTerrain(name, sector);

            _repositoryAgentTerrain.Save(agentTerrain);
        }