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

            //Assert
            Assert.IsNotNull(response);
        }
示例#2
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);
        }