public async Task Valid_Employee_Create() { //Act var result = (Employee)await objController.CreateRegistration(emp); ////Assert _employeeMock.Verify(m => m.Add(emp), Times.Once); Assert.AreEqual(emp, result); }
public async void Create_new_registration_Test() { var response = await _registrationController.CreateRegistration(_registrationCreate); Assert.IsType <OkResult>(response); }