Esempio n. 1
0
        public void TestUpdateItemsOrderStatusShipped()
        {
            SetOrderShipped();
            var resourceToUpdate = ResourceCreator.GetRandomCreateResource();

            var response = ResourceCreator.Update(CreatedResource.Id, resourceToUpdate);

            AssertBadRequestReason(response, BadRequestReasonExtended.OrderNotPending);
        }
Esempio n. 2
0
        public virtual void TestFamilyUpdate()
        {
            var resourceToUpdate = ResourceCreator.GetRandomCreateResource();

            ResourceCreator.Update(CreatedResource.Id, resourceToUpdate);
            var category = ResourcesHolder.GetLastOrCreate <DepartmentResource>().Value;

            Assert.AreEqual(resourceToUpdate.FamilyName, category.Families.First().Name);
            Assert.AreEqual(resourceToUpdate.Name, category.Families.First().Categories.First().Name);
        }