public void Insert() { var entity = new NotNullEntity { StringProp = "", BinaryProp = new byte[0] }; _repository.Insert(entity); Assert.That(entity.Id > 0); }
public void Insert() { var entity = new NotNullEntity { StringProp = "", BinaryProp = new byte[0] }; var id = (int)_builder.Insert(Session, entity).ExecScalar(); Assert.IsTrue(id > 0); Assert.IsTrue(id != 1); }
public void SetUp() { _entity = new NotNullEntity(); _mapper = MappingFactory.CreateEntityMappingFromAnnonations <NotNullEntity>(); }