ViewModelHelper.cs 618 B

12345678910111213141516171819202122
  1. using Microsoft.Extensions.DependencyInjection;
  2. using PixiEditor.Models.Controllers;
  3. using PixiEditor.Models.UserPreferences;
  4. using PixiEditorTests.Mocks;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace PixiEditorTests.HelpersTests
  11. {
  12. public static class ViewModelHelper
  13. {
  14. public static IServiceCollection GetViewModelMainCollection()
  15. {
  16. return new ServiceCollection()
  17. .AddScoped<IPreferences, PreferenceSettingsMock>()
  18. .AddSingleton<BitmapManager>();
  19. }
  20. }
  21. }