コード例 #1
0
        public void SetUp()
        {
            _mockCommandBus = new Mock <ICommandBus>();

            _factory = new FilterViewModelFactory(
                _mockCommandBus.Object);
        }
コード例 #2
0
        public void CreateFilterViewModel()
        {
            IFilterViewModel <UserFilter, UserDto> viewModel =
                new FilterViewModelFactory(MockRepository.GenerateStub <IUnitOfWorkFactory>())
                .Create <UserFilter, UserDto>();

            Assert.That(viewModel, Is.Not.Null);
        }