public void DeleteLogin() { Login login = new Login() { Active = true, Email = "*****@*****.**", FirstName = "Jacobo", LastName = "Marcos Perchin", UserLogin = "******", Password = "******", PasswordExpirationDate = DateTime.UtcNow.AddMonths(6) }; login = this.BasicRepository.Save(login); ThreadIdentity.SetCurrentThreadIdentity("Delete Test Identity"); DateTime beforeUpdate = DateTime.UtcNow; BasicRepository.Delete(login); Login loginDeleted = RefreshEntityFromDatabase(login.Id.Value); VerifyAuditInfoAfterDelete(loginDeleted, beforeUpdate, "Delete Test Identity"); }