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

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

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

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

            // Assert
            Assert.IsNotNull(storeResult);
        }
Exemple #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);
        }