public void TestAccountGetAll() { // arrange IAccountRepository repo = new InMemoryAccountListRepository(); // act var result = repo.GetAll().ToArray(); // assert Assert.AreEqual(1, result[0].Id); }
public void TestAccount_Delete() { // arrange IAccountRepository repo = new InMemoryAccountListRepository(); // act var account = repo.Delete(1); var accounts = repo.GetAll(); // assert Assert.AreEqual(1, account.Id); Assert.AreEqual(1, accounts.Count()); }