public void GetBookTest(GetTestValue testValue)
        {
            var controller = new BookController(this.GetContextWithData());
            var response   = controller.Get(testValue.Id);

            Assert.That(response, Is.EqualTo(JsonConvert.SerializeObject(testValue.ReferenceBook)));
        }
        public void GetStoreTest(GetTestValue testValue)
        {
            var controller     = new StoreController(this.GetContextWithData());
            var retrievedStore = controller.Get(testValue.Id);

            Assert.That(JsonConvert.SerializeObject(testValue.ReferenceStore), Is.EqualTo(retrievedStore));
        }
Пример #3
0
        public void GetOrderTest(GetTestValue testValue)
        {
            var controller     = new OrderController(this.GetContextWithData());
            var retrievedOrder = controller.Get(testValue.Id);

            Assert.That(JsonConvert.SerializeObject(testValue.ReferenceOrder), Is.EqualTo(retrievedOrder));
        }