示例#1
0
        public void IsPolygon_ValidSides_ReturnsTrue(IList <int> sides)
        {
            var polygonService = new PolygonService();

            var result = polygonService.IsPolygon(sides);

            Assert.True(result);
        }
示例#2
0
        public void IsPolygon_PositiveButInvalidSides_ReturnsFalse(IList <int> sides)
        {
            var polygonService = new PolygonService();

            var result = polygonService.IsPolygon(sides);

            Assert.False(result);
        }
示例#3
0
        public void IsPolygon_OneOrMoreNonPositiveSides_ReturnsFalse(IList <int> sides)
        {
            var polygonService = new PolygonService();

            var result = polygonService.IsPolygon(sides);

            Assert.False(result);
        }
示例#4
0
        public void IsPolygon_LessThanThreeSides_ReturnsFalse(IList <int> sides)
        {
            var polygonService = new PolygonService();

            var result = polygonService.IsPolygon(sides);

            Assert.False(result);
        }
示例#5
0
        private void CreateTestData(IDataStore dataStore)
        {
            ContainerTypeService.CreateTestData(dataStore);

            ContainerService.CreateTestData(dataStore);

            CarService.CreateTestData(dataStore);

            DriverService.CreateTestData(dataStore);

            PolygonService.CreateTestData(dataStore);

            CustomerService.CreateTestData(dataStore);
        }
示例#6
0
 public HomeController()
 {
     _polygonService = PolygonService.GetInstance();
     _polygonPainter = new PolygonPainter();
 }