예제 #1
0
        public void Controller_Customer_Search_Bad()
        {
            var logger = new BlitzkriegSoftware.MsTest.MsTestLogger <Controllers.CustomerController>(TestControllers.Context);
            var ctlr   = new Controllers.CustomerController(logger);

            _ = ctlr.Search(null);
        }
예제 #2
0
        public void Controller_Customer_Search()
        {
            var logger = new BlitzkriegSoftware.MsTest.MsTestLogger <Controllers.CustomerController>(TestControllers.Context);
            var ctlr   = new Controllers.CustomerController(logger);
            var entity = this.RandomCustomer();
            var text   = entity.NameLast.Substring(0, 2);
            var result = ctlr.Search(text);

            Assert.IsNotNull(result);
        }