public void TestBlueSky_SaveAccount() { //set-up IAccountService service = MockAccountService.Singleton; AddAccountModel = new AddAccountModel(); AddAccountModel.AccountBalance = 100m; AddAccountModel.CompanyName = "test"; AddAccountModel.InterestRate = 2m; AddAccountModel.FirstDueDate = new DateTime(2017, 05, 05); AddAccountModel.AmountDue = 10m; //exercise Presenter.SaveAccount(AddAccountModel); //post-conditions IAccount account = service.GetAccount(1); Assert.AreEqual(account.AccountBalance, AddAccountModel.AccountBalance); Assert.AreEqual(account.CompanyName, AddAccountModel.CompanyName); Assert.AreEqual(account.InterestRate, AddAccountModel.InterestRate); }