コード例 #1
0
        // ----- Initialization

        public CustomerListViewModel_should()
        {
            _messengerServiceMock    = new Mock <IMessenger>();
            _customerListServiceMock = new Mock <ICustomerListService>();
            _dialogServiceMock       = new Mock <IDialogService>();

            _customerListViewModel = new CustomerListViewModel(_messengerServiceMock.Object, _customerListServiceMock.Object, _dialogServiceMock.Object);
            _customerListServiceMock.Setup(x => x.GetCustomers()).Returns(INITIAL_CUSTOMERS);
            _customerListViewModel.Boot().Wait();
        }