Esempio n. 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);
        }
Esempio n. 2
0
        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);
        }