public void Should_Be_Able_To_Save_Client() { var repo = new ClientFileSystemRepository(); var client = new Client(); client.ClientName = "NNPC"; client.Address = "Bethel plaza,enugu state"; repo.Create(client); }
public void Should_Be_Able_To_Read_All_Cients() { var repo = new ClientFileSystemRepository(); var clients = repo.GetAllClients(); Assert.AreEqual(2, clients.Count); Assert.AreEqual(ClientData.client1Id, clients.First().Id); Assert.AreEqual(ClientData.client2Id, clients[1].Id); Assert.AreEqual("Ministry of Petroluem Resources", clients.First().ClientName); }
public void Should_Be_Able_To_Create_ClientRepository_Instance() { var repo = new ClientFileSystemRepository(); Assert.IsNotNull(repo); }