public void EditUser() { user = new User() { UserId = 1, FirstName = "Venkatesh" }; var service = new UserService(dbContext); var data = service.EditUser(user.ToUserAPIModel()); Assert.NotNull(user); }