Ejemplo n.º 1
0
        public void Test_5_Delete()
        {
            //Act
            var response = UserImplementaion.Delete() as OkNegotiatedContentResult <IEnumerable <Guid> >;

            //Assert
            Assert.IsNotNull(response);
        }
Ejemplo n.º 2
0
        internal static IHttpActionResult Delete()
        {
            CustomerImplementaion.Delete();
            UserImplementaion.Delete();

            var _persons  = GetAll() as OkNegotiatedContentResult <IEnumerable <Person> >;
            var personIDs = _persons.Content.Select(t => t.ID).ToList();
            var response  = baseController.Delete(personIDs);

            return(response);
        }