public async Task TestDeleteCollectionSuccess() { //Should remove the collection var result = await controller.DeleteCollection(2); Assert.IsType <OkObjectResult>(result); OkObjectResult new_res = (OkObjectResult)result; CollectionDTO new_dto = (CollectionDTO)new_res.Value; //Information inside the elimanated CollectionDTO should be equivalent to the requested collection for deletion Assert.Equal("Second_Test_Collection", new_dto.collectionName); Assert.Equal("Second_Mock_Parameter", new_dto.aestheticParameter); Assert.True(2 == new_dto.CollectionId); //Should not be possible to get the collection once its deleted var result2 = await controller.GetCollection(2); Assert.IsType <NotFoundResult>(result2); }