public async Task Test_add_user_modify_lockout_end_date_delete() { var dao = Global.TenantDao; await dao.EstablishConnectionAsync(); var guidId = Guid.NewGuid(); var userStore = new CassandraUserStore(); string userName = Guid.NewGuid().ToString(); var user = new CassandraUser() { Email = userName, UserName = userName, EmailConfirmed = false, PhoneNumberConfirmed = false, PhoneNumber = "310.383.1111", LockoutEnabled = false, PasswordHash = "1234", SecurityStamp = "1234", LockoutEndDate = DateTimeOffset.UtcNow }; await userStore.CreateAsync(user); var foundUser = await userStore.FindByEmailAsync(userName); Assert.IsNotNull(foundUser); var lockOutDate = await userStore.GetLockoutEndDateAsync(foundUser); Assert.AreEqual(lockOutDate.Day, user.LockoutEndDate.Day); Assert.AreEqual(lockOutDate.Hour, user.LockoutEndDate.Hour); Assert.AreEqual(lockOutDate.Minute, user.LockoutEndDate.Minute); Assert.AreEqual(lockOutDate.Year, user.LockoutEndDate.Year); var future = user.LockoutEndDate.AddDays(5); await userStore.SetLockoutEndDateAsync(foundUser, future); await userStore.UpdateAsync(foundUser); foundUser = await userStore.FindByEmailAsync(userName); Assert.IsNotNull(foundUser); lockOutDate = await userStore.GetLockoutEndDateAsync(foundUser); Assert.AreEqual(lockOutDate.Day, future.Day); Assert.AreEqual(lockOutDate.Hour, future.Hour); Assert.AreEqual(lockOutDate.Minute, future.Minute); Assert.AreEqual(lockOutDate.Year, future.Year); await userStore.DeleteAsync(foundUser); foundUser = await userStore.FindByEmailAsync(userName); Assert.IsNull(foundUser); }