public void TestLoadAccounts() { //Given CustomerViewModel vm = new CustomerViewModel(); WCFAccountService accountService = _mocks.StrictMock<WCFAccountService>(); vm.AccountService = accountService; //create the individualcustomer CustomerDto customer = new CustomerDto() { Id = 1 }; vm.Customer = customer; //When vm.LoadAccounts(); //Then Assert.IsTrue(vm.InProgress); }
public void TestLoadAccounts() { //Given CustomerViewModel vm = new CustomerViewModel(); WCFAccountService accountService = _mocks.StrictMock <WCFAccountService>(); vm.AccountService = accountService; //create the individualcustomer CustomerDto customer = new CustomerDto() { Id = 1 }; vm.Customer = customer; //When vm.LoadAccounts(); //Then Assert.IsTrue(vm.InProgress); }