Example #1
0
 public async Task GetCustomerInformation()
 {
     try
     {
         var controller = new CustomerInformationController();
         Task <IHttpActionResult> result = controller.Getemp_CustomerInformation(new Guid("85b2b509-303b-4880-9e7b-074eabd6178c"));
         var contentResult = await result as OkNegotiatedContentResult <CustomerInformationModel>;
         Assert.AreEqual(contentResult.Content.EFIN, 963710);
     }
     catch (Exception e)
     {
         Assert.Fail(string.Format("Unexpected exception of type {0} caught: {1}", e.GetType(), e.Message));
     }
 }
 public void Get_ReturnsExpected()
 {
     CustomerInformationController controller = new CustomerInformationController();
     var result = controller.Get(1);
 }