protected void BuildAPrivateSegment_MustBeCreated_MustBeValid(string name, decimal exchangeRate) { // Arrange var entity = _segmentFactory.Create(name, exchangeRate); // Assert Assert.NotNull(entity); Assert.Equal(name, entity.Name); Assert.Equal(exchangeRate, entity.ExchangeRate); Assert.True(entity.Valid); }