Esempio n. 1
0
        public void RegisterSupplier_Then_A_Return_SupplierOutbount()
        {
            var input = new SupplierInput {
                CompanyName        = "Robert C Martin ME",
                EnterpriseRegistry = "16.741.284/0001-07"
            };

            var usecase  = new SupplierRegistry(new SupplierMockRepository());
            var outbound = usecase.Handle(input);

            Assert.NotNull(outbound.Id);
        }
Esempio n. 2
0
        public void SupplierController_Then_A_Return_SupplierOutbount()
        {
            var input = new SupplierInput
            {
                CompanyName        = "Robert C Martin ME",
                EnterpriseRegistry = "16.741.284/0001-07"
            };

            var usecase    = new SupplierRegistry(new SupplierMockRepository());
            var controller = new SupplierController();

            var output = controller.Post(input, usecase);

            Assert.NotNull(output.Id);
        }