Ejemplo n.º 1
0
        public void TwoProductionSitesWithDistinctValuesShouldBeNotEqualThroughMethod()
        {
            // Arrange
            var firstName  = "Production Site 1";
            var secondName = "Production Site 2";
            var first      = new ProductionSite(firstName);
            var second     = new ProductionSite(secondName);

            // Act
            var result = first.Equals(second);

            // Assert
            result.Should().BeFalse();
        }
Ejemplo n.º 2
0
        public void TwoProductionSitesWithSameValuesShouldBeEqualThroughMethod()
        {
            // Arrange
            var name = "Production Site";

            var first  = new ProductionSite(name);
            var second = new ProductionSite(name);

            // Act
            var result = first.Equals(second);

            // Assert
            result.Should().BeTrue();
        }