public SuppliersCollection Suppliers_LoadAll() { SuppliersCollection coll = new SuppliersCollection(); coll.es.IsLazyLoadDisabled = true; coll.LoadAll(); return(coll); }
public void Constructor_WhenInvoked_MustCreateSuppliersCollectionWithGroupId() { // Arrange, Act var subject = new SuppliersCollection(suppliersCollectionId, groupId); // Assert Assert.That(subject.GroupId, Is.EqualTo(groupId)); }
public void Constructor_WhenInvoked_MustAddSuppliersCollectionId() { // Arrange, Act var subject = new SuppliersCollection(suppliersCollectionId, groupId); // Assert var @event = subject.GetUncommitedChanges().Single() as SuppliersCollectionCreated; Assert.That(@event.SuppliersCollectionId, Is.EqualTo(suppliersCollectionId)); }
public void Constructor_WhenInvoked_MustAddSuppliersCollectionCreatedEvent() { // Arrange, Act var subject = new SuppliersCollection(suppliersCollectionId, groupId); // Assert var @event = subject.GetUncommitedChanges().Single(); Assert.That(@event, Is.TypeOf <SuppliersCollectionCreated>()); }
public SuppliersCollectionProxyStub Suppliers_LoadAll() { SuppliersCollection coll = new SuppliersCollection(); if (coll.LoadAll()) { return(coll); } return(null); }
public SuppliersCollectionProxyStub Suppliers_SaveCollection(SuppliersCollectionProxyStub collection) { if (collection != null) { SuppliersCollection c = collection.GetCollection(); c.Save(); return(c); } return(null); }
public SuppliersCollection Suppliers_LoadByDynamic(string serializedQuery) { SuppliersQuery query = SuppliersQuery.SerializeHelper.FromXml( serializedQuery, typeof(SuppliersQuery), AllKnownTypes) as SuppliersQuery; SuppliersCollection coll = new SuppliersCollection(); coll.es.IsLazyLoadDisabled = true; coll.Load(query); return(coll); }
public SuppliersCollection.SuppliersCollectionWCFPacket Suppliers_LoadAll() { SuppliersCollection coll = new SuppliersCollection(); if (coll.LoadAll()) { return(coll); } return(null); }
public SuppliersCollectionProxyStub Suppliers_QueryForCollection(string serializedQuery) { SuppliersQuery query = SuppliersQuery.SerializeHelper.FromXml( serializedQuery, typeof(SuppliersQuery), AllKnownTypes) as SuppliersQuery; SuppliersCollection coll = new SuppliersCollection(); if (coll.Load(query)) { return(coll); } return(null); }