示例#1
0
        public void PostSupplierGood()
        {
            GetReady();
            var actRes = controller.Post(new SupplierModel()
            {
                Name = "BINGO", Address = "Hiseta Adžije 22", Town = new SupplierModel.SupplierTown()
                {
                    Id = 1
                }
            });
            var response = actRes.ExecuteAsync(CancellationToken.None).Result;

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

            Assert.IsTrue(response.IsSuccessStatusCode);
        }