public async Task MongoIdentityUser_ShouldSaveAndRetrieveTheFutureOccuranceCorrectly() { var lockoutEndDate = new DateTime(2017, 2, 1, 0, 0, 0, DateTimeKind.Utc).AddTicks(8996910); var user = new MyIdentityUser(TestUtils.RandomString(10)); user.LockUntil(lockoutEndDate); using (var store = new MongoUserStore <MyIdentityUser>(options)) { // ACT var result = await store.CreateAsync(user, CancellationToken.None); // ASSERT Assert.True(result.Succeeded); var retrievedUser = await store.FindByIdAsync(user.Id, CancellationToken.None); Assert.Equal(user.LockoutEndDate, retrievedUser.LockoutEndDate); } }