public void deleteaworkspace() { FakeChatService fakechat = new FakeChatService(); ChatController _chatcontroller = new ChatController(fakechat); var result = _chatcontroller.DeleteWorkspaceById("5b71298a6a2e663634872e65"); var notePosted = result as NoContentResult; Assert.Equal(204, notePosted.StatusCode); }