public CustomerCreate() { _customer = new Domain.Customer.Customer( new CustomerId(Guid.NewGuid()), FullName.FromString("ST Skolebyg"), Adresse.FromString("Vardevej 98", 7100, "Vejle"), PhoneNo.FromInt(22222222), Email.FromString("*****@*****.**"), CustomerType.FromString(1.ToString()) ); }
public void Cannot_update_with_empty_Adresse_ZipCode() { Assert.Throws <System.ArgumentNullException>(() => _customer.UpdateAdresse(Adresse.FromString("Testvej 9", 0, "Vejle"))); }
public void Cannot_update_with_empty_Adresse_Street() { Assert.Throws <System.ArgumentNullException>(() => _customer.UpdateAdresse(Adresse.FromString("", 7100, "Vejle"))); }