public void SearchSavingByCritere() { string query = "2007"; Assert.AreEqual(_savingManager.GetNumberSavingContract(query, false, false), 1); List <SavingSearchResult> result = _savingManager.SearchSavingContractByCritere(1, query, false, false); Assert.AreEqual(result.Count, 1); Assert.AreEqual("S/BC/2007/SAVIN-1/ELFA-6", result[0].ContractCode); Assert.AreEqual(new DateTime(2007, 01, 01), result[0].ContractStartDate); Assert.AreEqual(OClientTypes.Person, result[0].ClientType); Assert.AreEqual("Mariam EL FANIDI", result[0].ClientName); Assert.AreEqual(6, result[0].ClientId); Assert.AreEqual(OSavingsStatus.Active, result[0].Status); Assert.AreEqual(false, result[0].ContractEndDate.HasValue); Assert.AreEqual("B", result[0].ContractType); }