public void TargetSalesCount_ShouldReturn_Value_For_EqualityComponent() { var TargetSalesCount = new TargetSalesCount(5); var equalityComponent = new List <object> { TargetSalesCount.Value }; TargetSalesCount.GetEqualityComponents().Should().BeEquivalentTo(equalityComponent); }
public CampaignDto(string name, ProductDto product, int duration, int limit, int targetSalesCount) { Name = new Name(name); Product = product; Duration = new Duration(duration); Limit = new PriceManipulationLimit(limit); Count = new TargetSalesCount(targetSalesCount); Status = true; Id = new Guid(); }
public void ShouldBeCreateTargetSalesCountValue() { var TargetSalesCount = new TargetSalesCount(1); TargetSalesCount.Value.Should().Be(1); }