Ejemplo n.º 1
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);
        }
Ejemplo n.º 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);
        }