public void EmployeeCanCreateNewCase() { IEmployeeFacade facade = new DomainFacade(); ICase thiscase = facade.CreateCase(); Assert.AreEqual(0, thiscase.CaseNumber); }
public void GetHouseTypeCategoryObject() { DomainFacade df = new DomainFacade(); ICase c = df.CreateCase(); List <ITechnicalSpecification> tspec = new List <ITechnicalSpecification>(); IExpenseCategory expenseCategory = c.GetExpenseCategory(Category.HouseType); IHouseTypeExpenses houseTypeExpenses = (IHouseTypeExpenses)expenseCategory; Assert.AreEqual(typeof(IHouseTypeExpenses), houseTypeExpenses.GetType()); Assert.AreNotEqual(null, expenseCategory); }
public void GetListOfTechnicalSpecifiations() { DomainFacade df = new DomainFacade(); ICase c = df.CreateCase(); List <ITechnicalSpecification> tspec = new List <ITechnicalSpecification>(); IHouseTypeExpenses htExpenses = (IHouseTypeExpenses)c.GetExpenseCategory(Category.HouseType); //List has 5 Assert.AreEqual(typeof(HouseTypeExpenses), htExpenses.GetType()); Assert.AreNotEqual(null, htExpenses); }