public string MakeClient(string name, string VATNumber, string adres, CategorieType type) { Client client = new Client(name, VATNumber, adres, manager.GetCategory(type)); SelectedClient = client; return(name); }
public void TestRudyManagerGetCategory() { UnitOfWork uow = new UnitOfWork(new VIPServicesRudyTestContext(true)); VIPServicesRudyManager m = new VIPServicesRudyManager(uow); CategorieType type = CategorieType.vip; Category vip = m.GetCategory(type); vip.Name.ShouldBe(CategorieType.vip); vip.StaffDiscount.Count.ShouldBe(3); }