public void DeleteTemplateOk() { TemplatesOperationMockService mock = new TemplatesOperationMockService(); FileOperationMockService mockFile = new FileOperationMockService(); TemplateController controllerMock = new TemplateController(mock, mockFile); int countOld = mock.GetTemplates().Count; controllerMock.DeleteTemplate(mock.GetTemplates().FirstOrDefault().TemplateID); Assert.True(mock.GetTemplates().Count < countOld); }