示例#1
0
        public void SetUp()
        {
            _invoice = new Invoice()
            {
                EmailAddress = EmailAddress
            };

            _mocker = new AutoMoqer();

            _mocker.GetMock <IDatabase>()
            .Setup(p => p.GetInvoice(InvoiceId))
            .Returns(_invoice);

            _command = _mocker.Create <EmailInvoiceCommand>();
        }