public async Task UnRegisterNonExistingStudentTesting() { var obj = new UnRegisteredStudentCommand { StudentId = 16 }; var resp = await _unRegisteredStudentCommandHandler.Handle(obj); Assert.AreEqual(false, resp.IsSuccessful); Assert.AreEqual(State.notFound, resp.Status); }
public async Task UnRegisterStudentTesting() { var obj = new UnRegisteredStudentCommand { StudentId = 1 }; var resp = await _unRegisteredStudentCommandHandler.Handle(obj); Assert.AreEqual(true, resp.IsSuccessful); Assert.AreEqual(State.noContent, resp.Status); }