public void WhenUserAlreadyExistsAddFeatureThrowsAnException() { var existingUser = _unitOfWork.ExistingUsers.Find(u => u.Id.Equals(1)); Assert.Throws <Exception>(() => _unitOfWork.AddUser(existingUser)); }