public void MsSQL_GetById() { // Act var controller = new MsSQLController(Inject()); var response = controller.Get(1); // Arrange var obj = (StaffMasterModel)response.Value; // Assert Assert.IsTrue(obj.Id > 0); }
public void MsSQL_Get() { // Act var controller = new MsSQLController(Inject()); var response = controller.Get(); // Arrange var obj = (List <StaffMasterModel>)response.Value; // Assert Assert.IsTrue(obj.Count > 0); }