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