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);
        }
Example #2
0
        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);
        }