public void Should_Return_True_When_Address_IsMissing() { //Arrange var address = CompleteAddress(); address.Address = string.Empty; var infoMissing = new InfoMissing(); //Act var result = infoMissing.IsMissingInfo(address, new SiteContext()); //Assert Assert.IsTrue(result); }
public void Should_Return_False_When_Tel_Is_Missing_And_Site_Culture_Equals_BE() { //Arrange var address = CompleteAddress(); address.Tel = ""; var infoMissing = new InfoMissing(); var site = new SiteContext(); site.Culture = "BE"; //Act var result = infoMissing.IsMissingInfo(address, site); //Assert Assert.IsFalse(result); }
public void Should_Return_False_When_TaxNumber_IsMissing_And_Site_Culture_Equal_(string culture) { //Arrange var address = CompleteAddress(); address.TaxNumber = ""; var infoMissing = new InfoMissing(); var site = new SiteContext(); site.Culture = culture; //Act var result = infoMissing.IsMissingInfo(address, site); //Assert Assert.IsFalse(result); }