示例#1
0
        public SuppliersCollection Suppliers_LoadAll()
        {
            SuppliersCollection coll = new SuppliersCollection();

            coll.es.IsLazyLoadDisabled = true;
            coll.LoadAll();
            return(coll);
        }
示例#2
0
        public void Constructor_WhenInvoked_MustCreateSuppliersCollectionWithGroupId()
        {
            // Arrange, Act
            var subject = new SuppliersCollection(suppliersCollectionId, groupId);

            // Assert
            Assert.That(subject.GroupId, Is.EqualTo(groupId));
        }
示例#3
0
        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));
        }
示例#4
0
        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);
        }
示例#7
0
        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);
        }
示例#8
0
        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);
        }