public void IsPolygon_ValidSides_ReturnsTrue(IList <int> sides) { var polygonService = new PolygonService(); var result = polygonService.IsPolygon(sides); Assert.True(result); }
public void IsPolygon_PositiveButInvalidSides_ReturnsFalse(IList <int> sides) { var polygonService = new PolygonService(); var result = polygonService.IsPolygon(sides); Assert.False(result); }
public void IsPolygon_OneOrMoreNonPositiveSides_ReturnsFalse(IList <int> sides) { var polygonService = new PolygonService(); var result = polygonService.IsPolygon(sides); Assert.False(result); }
public void IsPolygon_LessThanThreeSides_ReturnsFalse(IList <int> sides) { var polygonService = new PolygonService(); var result = polygonService.IsPolygon(sides); Assert.False(result); }
private void CreateTestData(IDataStore dataStore) { ContainerTypeService.CreateTestData(dataStore); ContainerService.CreateTestData(dataStore); CarService.CreateTestData(dataStore); DriverService.CreateTestData(dataStore); PolygonService.CreateTestData(dataStore); CustomerService.CreateTestData(dataStore); }
public HomeController() { _polygonService = PolygonService.GetInstance(); _polygonPainter = new PolygonPainter(); }