public void Test_1_Insert() { //Act var response = StoreImplementaion.Insert() as OkNegotiatedContentResult <IEnumerable <Store> >; //Assert Assert.IsNotNull(response); }
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); }