Exemplo n.º 1
0
        public void Test_1_Insert()
        {
            //Act
            var response = StoreImplementaion.Insert() as OkNegotiatedContentResult <IEnumerable <Store> >;

            //Assert
            Assert.IsNotNull(response);
        }
Exemplo n.º 2
0
        public void Test_5_Delete()
        {
            //Act
            var deleteResult = StoreImplementaion.Delete() as OkNegotiatedContentResult <IEnumerable <Guid> >;

            //Assert
            Assert.IsNotNull(deleteResult);
        }
Exemplo n.º 3
0
        public void Test_3_GetAll()
        {
            // Act
            var storeResult = StoreImplementaion.GetAll() as OkNegotiatedContentResult <IEnumerable <Store> >;

            // Assert
            Assert.IsNotNull(storeResult);
        }
Exemplo n.º 4
0
        public void Test_4_GetByID()
        {
            // Act
            var storeResult = StoreImplementaion.GetByID() as OkNegotiatedContentResult <Store>;

            // Assert
            Assert.IsNotNull(storeResult);
        }
Exemplo n.º 5
0
        internal static IHttpActionResult Insert()
        {
            var storeResult = StoreImplementaion.Insert() as OkNegotiatedContentResult <IEnumerable <Store> >;
            var storeList   = storeResult.Content.ToList();

            var codings = storeList.Select(t => new Coding()
            {
                ID         = t.ID,
                ObjectType = ObjectType.Story
            }).ToList();

            var response = baseController.Insert(codings);

            return(response);
        }