Exemple #1
0
        public void FirstOrDefaultItemsNotFoundTest()
        {
            var service = new OdooService(Connection);

            var partner = service.FirstOrDefault(OdooFilter <OdooPartner> .Where(x => x.Id == 0));

            Assert.IsNull(partner);
        }
        public void FirstOrDefaultItemsNotFoundTest()
        {
            var service = new OdooService(Connection);

            var partner = service.FirstOrDefault(OdooFilter<OdooPartner>.Where(x => x.Id == 0));

            Assert.IsNull(partner);
        }
        public void ObjectWithlistTest()
        {
            var service = new OdooService(Connection);

            var project = service.FirstOrDefault<OdooProject>(OdooFilter<OdooProject>.Where(x => x.Id == 431));

            var first  = project.PartnerInvoices.First();

            Assert.That(project.PartnerInvoices.Any());
        }
Exemple #4
0
        public void ObjectWithlistTest()
        {
            var service = new OdooService(Connection);

            var project = service.FirstOrDefault <OdooProject>(OdooFilter <OdooProject> .Where(x => x.Id == 431));

            var first = project.PartnerInvoices.First();

            Assert.That(project.PartnerInvoices.Any());
        }