public void Should_Delete_User() { // given var expectedResultAdmins = context.Admins.Count() - 1; var admin = context.Admins.First(); // when useCase.DeleteUser(admin.SystemUser.Id); // then Assert.AreEqual(expectedResultAdmins, context.Admins.Count()); }
public IActionResult DeleteUser(string userId) { adminUseCase.DeleteUser(userId); return(RedirectToAction("Users")); }