예제 #1
0
 public void NetSuiteFileControllerIsAnApiController()
 {
     var nsService = new Mock<INetSuiteUriFileService>();
     var httpSrvc = new Mock<IHttpRespPassThruService>();
     NetSuiteFileController ctrl = new NetSuiteFileController(nsService.Object, httpSrvc.Object);
     Assert.IsInstanceOfType(ctrl, typeof(ApiController));
 }
예제 #2
0
 public void NetSuiteFileControllerConstructorRequiresNetSuiteUriService()
 {
     var nsService = new Mock<INetSuiteUriFileService>();
     var httpSrvc = new Mock<IHttpRespPassThruService>();
     NetSuiteFileController ctrl = new NetSuiteFileController(nsService.Object, httpSrvc.Object);
     Assert.IsNotNull(ctrl);
 }