Ejemplo n.º 1
0
 protected bool Equals(Vendor other)
 {
     return string.Equals(Name, other.Name) && string.Equals(Code, other.Code);
 }
Ejemplo n.º 2
0
 public void ThenTheVendorExistInTheVendorListWithTheName(string code, string name)
 {
     var vendor = new Vendor(code, name);
     Assert.IsTrue(repository.Exist(vendor));
 }
Ejemplo n.º 3
0
 public void WhenIEnterANewVendorWithTheName(string code, string name)
 {
     var vendor = new Vendor(code, name);
     repository.Add(vendor);
 }
Ejemplo n.º 4
0
 public void GivenAVendorListWithoutAVendor(string code, string name)
 {
     var vendor = new Vendor(code, name);
     Assert.IsFalse(repository.Exist(vendor));
 }