Example #1
0
        public void ChangeName()
        {
            GetReady();
            var actRes = controller.Put(1, new SupplierModel()
            {
                Id = 1, Name = "OTOKA&CO", Address = "Hiseta 13", Town = new SupplierModel.SupplierTown()
                {
                    Id = 1
                }
            });
            var response = actRes.ExecuteAsync(CancellationToken.None).Result;

            Assert.IsTrue(response.IsSuccessStatusCode);
        }
        public void ChangeSupplierName()
        {
            GetReady();
            var actRes = controller.Put(1, new SupplierModel()
            {
                Id = 1, Name = "Networks doo", Address = "Aleja lipa 33", TownId = 1
            });
            var response = actRes.ExecuteAsync(CancellationToken.None).Result;

            Assert.IsTrue(response.IsSuccessStatusCode);
        }