示例#1
0
        public void TestExecuteShouldAddSaleToTheDatabase()
        {
            _command.Execute(_model);

            _mocker.GetMock <ISaleRepositoryFacade>()
            .Verify(p => p.AddSale(_sale),
                    Times.Once);
        }
示例#2
0
        public void TestExecuteShouldAddSaleToTheDatabase()
        {
            _command.Execute(_model);

            _mocker.GetMock <IDbSet <Sale> >()
            .Verify(p => p.Add(_sale),
                    Times.Once);
        }