public LoadDialogsTests() { TestsData testsData = TestsData.Create(nameof(LoadDialogsTests)); fillTestDbHelper = testsData.FillTestDbHelper; loadDialogsService = testsData.AppServiceProvider.LoadDialogsService; }
public ConversationsTests() { TestsData testsData = TestsData.Create(nameof(ConversationsTests)); fillTestDbHelper = testsData.FillTestDbHelper; conversationsService = testsData.AppServiceProvider.ConversationsService; }
public CreateChannelsTests() { var testsData = TestsData.Create(nameof(CreateChannelsTests)); fillTestDbHelper = testsData.FillTestDbHelper; createChannelsService = testsData.AppServiceProvider.CreateChannelsService; }
public UpdateChatsTests() { var testsData = TestsData.Create(nameof(UpdateChatsTests)); fillTestDbHelper = testsData.FillTestDbHelper; updateChatsService = testsData.AppServiceProvider.UpdateChatsService; }
public QRCodesTests() { TestsData testsData = TestsData.Create(nameof(QRCodesTests)); fillTestDbHelper = testsData.FillTestDbHelper; codesService = testsData.AppServiceProvider.QRCodesService; }
public DeleteChannelsTests() { TestsData testsData = TestsData.Create(nameof(DeleteChannelsTests)); fillTestDbHelper = testsData.FillTestDbHelper; deleteChannelsService = testsData.AppServiceProvider.DeleteChannelsService; }
public DeleteMessagesTests() { var testsData = TestsData.Create(nameof(DeleteMessagesTests)); fillTestDbHelper = testsData.FillTestDbHelper; deleteMessagesService = testsData.AppServiceProvider.DeleteMessagesService; }
public LoadUsersTests() { var testsData = TestsData.Create(nameof(LoadUsersTests)); loadUsersService = testsData.AppServiceProvider.LoadUsersService; fillTestDbHelper = testsData.FillTestDbHelper; }
public FilesServiceTests() { TestsData testsData = TestsData.Create(nameof(FilesServiceTests)); filesService = testsData.AppServiceProvider.FilesService; fillTestDbHelper = testsData.FillTestDbHelper; }
public PendingMessagesTests() { TestsData testsData = TestsData.Create(nameof(PendingMessagesTests)); fillTestDbHelper = testsData.FillTestDbHelper; pendingMessagesService = testsData.AppServiceProvider.PendingMessagesService; }
public FavoritesTests() { TestsData testsData = TestsData.Create(nameof(FavoritesTests)); fillTestDbHelper = testsData.FillTestDbHelper; favoritesService = testsData.AppServiceProvider.FavoritesService; }
public LoadMessagesTests() { var testsData = TestsData.Create("LoadMessagesTests"); fillTestDbHelper = testsData.FillTestDbHelper; loadMessagesService = testsData.AppServiceProvider.LoadMessagesService; }
public DeleteUsersTests() { var testsData = TestsData.Create(nameof(DeleteUsersTests)); fillTestDbHelper = testsData.FillTestDbHelper; deleteUsersService = testsData.AppServiceProvider.DeleteUsersService; loadUsersService = testsData.AppServiceProvider.LoadUsersService; }
public GroupsTests() { TestsData testsData = TestsData.Create(nameof(GroupsTests)); fillTestDbHelper = testsData.FillTestDbHelper; groupsService = testsData.AppServiceProvider.GroupsService; contactsService = testsData.AppServiceProvider.ContactsService; }
public TokensTests() { TestsData testsData = TestsData.Create(nameof(TokensTests)); fillTestDbHelper = testsData.FillTestDbHelper; tokensService = testsData.AppServiceProvider.TokensService; verificationCodesService = testsData.AppServiceProvider.VerificationCodesService; }
public UpdateUsersTests() { var testsData = TestsData.Create("updateUsersTests"); fillTestDbHelper = testsData.FillTestDbHelper; updateUsersService = testsData.AppServiceProvider.UpdateUsersService; loadUsersService = testsData.AppServiceProvider.LoadUsersService; }
public CreateMessagesTests() { var testsData = TestsData.Create(nameof(CreateMessagesTests)); createMessagesService = testsData.AppServiceProvider.CreateMessagesService; fillTestDbHelper = testsData.FillTestDbHelper; loadMessagesService = testsData.AppServiceProvider.LoadMessagesService; }
public PrivacyServiceTests() { TestsData testsData = TestsData.Create(nameof(PrivacyServiceTests)); fillTestDbHelper = testsData.FillTestDbHelper; AppServiceProvider.Instance = testsData.AppServiceProvider; gropsService = testsData.AppServiceProvider.GroupsService; contactsService = testsData.AppServiceProvider.ContactsService; privacyService = testsData.AppServiceProvider.PrivacyService; }
public static TestsData Create(string dbName) { if (_instances.TryGetValue(dbName, out var result)) { return(result); } TestsData testsData = new TestsData(); MockAppServiceProvider appServiceProvider = new MockAppServiceProvider(dbName); testsData.FillTestDbHelper = new FillTestDbHelper((MockMessengerDbContextFactory)appServiceProvider.MessengerDbContextFactory); testsData.AppServiceProvider = appServiceProvider; testsData.FillTestDbHelper.FillMessengerContextAsync().Wait(); _instances.TryAdd(dbName, testsData); return(testsData); }
public CreateUsersTests() { var testsData = TestsData.Create(nameof(CreateUsersService)); createUsersService = testsData.AppServiceProvider.CreateUsersService; }
public VerificationCodesTests() { var testsData = TestsData.Create(nameof(VerificationCodesTests)); verificationCodesService = testsData.AppServiceProvider.VerificationCodesService; }
public AttachmentsTests() { TestsData testsData = TestsData.Create(nameof(AttachmentsTests)); attachmentsService = testsData.AppServiceProvider.AttachmentsService; fillTestDbHelper = testsData.FillTestDbHelper; }
public PollsTests() { TestsData testsData = TestsData.Create(nameof(PollsTests)); fillTestDbHelper = testsData.FillTestDbHelper; pollsService = testsData.AppServiceProvider.PollsService; }