public void OnUpdate() { var entity = new ValidAttributeUseModel(); var connection = TestConfiguration.GetConnection(); var mutator = new EntityAttributeMutator <ValidAttributeUseModel>(); mutator.MutateEntity(entity, MutatorType.Update, connection); Assert.IsTrue(DateTime.MinValue < entity.UpdatedDate); }
public void OnUpdateValidProperty() { var entity = new ValidAttributeUseModel(); var entityMapper = new EntityMapper <ValidAttributeUseModel>(); var mutator = new EntityAttributeMutator <ValidAttributeUseModel>(); mutator.MutateEntity(entity, MutatorType.Update, entityMapper, null); Assert.AreEqual(DateTime.MinValue, entity.CreatedDate); }
public void OnUpdate() { var entity = new ValidAttributeUseModel(); var entityMapper = new EntityMapper <ValidAttributeUseModel>(); var mutator = new EntityAttributeMutator <ValidAttributeUseModel>(); mutator.MutateEntity(entity, MutatorType.Update, entityMapper, null); Assert.IsTrue(DateTime.MinValue < entity.UpdatedDate); }
public void OnUpdateValidProperty() { var entity = new ValidAttributeUseModel(); var connection = TestConfiguration.GetConnection(); var mutator = new EntityAttributeMutator <ValidAttributeUseModel>(); mutator.MutateEntity(entity, MutatorType.Update, connection); Assert.AreEqual(DateTime.MinValue, entity.CreatedDate); }