using JamesKovacs.IoCArticle.DependencyInversion.Domain;
using JamesKovacs.IoCArticle.DependencyInversion.Services;
using MbUnit.Framework;

namespace JamesKovacs.IoCArticle.DependencyInversion.Tests.Integration.Services {
    [TestFixture]
    public class InvoiceServiceTests {
        [Test]
        public void CanSubmitNewInvoice() {
            Invoice invoice = new Invoice();
            IInvoiceService service = new InvoiceService();
            ValidationResults validationResults = service.Submit(invoice);
            Assert.IsTrue(validationResults.IsValid);
        }
    }
}