Exemplo n.º 1
0
        public void Controller_Customer_AddUpdate_Bad()
        {
            var logger = new BlitzkriegSoftware.MsTest.MsTestLogger <Controllers.CustomerController>(TestControllers.Context);
            var ctlr   = new Controllers.CustomerController(logger);

            Models.Customer entity = null;
            var             result = ctlr.AddUpdate(entity);

            Assert.IsNotNull(result);
        }
Exemplo n.º 2
0
        public void Controller_Customer_AddUpdate_New()
        {
            var logger = new BlitzkriegSoftware.MsTest.MsTestLogger <Controllers.CustomerController>(TestControllers.Context);
            var ctlr   = new Controllers.CustomerController(logger);

            Models.Customer entity = this.RandomCustomer();
            entity._id      = null;
            entity.NameLast = "Test";
            var result = ctlr.AddUpdate(entity);

            this.ResetIds();
            Assert.IsNotNull(result);
        }