예제 #1
0
        public LoadDialogsTests()
        {
            TestsData testsData = TestsData.Create(nameof(LoadDialogsTests));

            fillTestDbHelper   = testsData.FillTestDbHelper;
            loadDialogsService = testsData.AppServiceProvider.LoadDialogsService;
        }
예제 #2
0
        public ConversationsTests()
        {
            TestsData testsData = TestsData.Create(nameof(ConversationsTests));

            fillTestDbHelper     = testsData.FillTestDbHelper;
            conversationsService = testsData.AppServiceProvider.ConversationsService;
        }
예제 #3
0
        public CreateChannelsTests()
        {
            var testsData = TestsData.Create(nameof(CreateChannelsTests));

            fillTestDbHelper      = testsData.FillTestDbHelper;
            createChannelsService = testsData.AppServiceProvider.CreateChannelsService;
        }
예제 #4
0
        public UpdateChatsTests()
        {
            var testsData = TestsData.Create(nameof(UpdateChatsTests));

            fillTestDbHelper   = testsData.FillTestDbHelper;
            updateChatsService = testsData.AppServiceProvider.UpdateChatsService;
        }
예제 #5
0
        public QRCodesTests()
        {
            TestsData testsData = TestsData.Create(nameof(QRCodesTests));

            fillTestDbHelper = testsData.FillTestDbHelper;
            codesService     = testsData.AppServiceProvider.QRCodesService;
        }
예제 #6
0
        public DeleteChannelsTests()
        {
            TestsData testsData = TestsData.Create(nameof(DeleteChannelsTests));

            fillTestDbHelper      = testsData.FillTestDbHelper;
            deleteChannelsService = testsData.AppServiceProvider.DeleteChannelsService;
        }
예제 #7
0
        public DeleteMessagesTests()
        {
            var testsData = TestsData.Create(nameof(DeleteMessagesTests));

            fillTestDbHelper      = testsData.FillTestDbHelper;
            deleteMessagesService = testsData.AppServiceProvider.DeleteMessagesService;
        }
예제 #8
0
        public LoadUsersTests()
        {
            var testsData = TestsData.Create(nameof(LoadUsersTests));

            loadUsersService = testsData.AppServiceProvider.LoadUsersService;
            fillTestDbHelper = testsData.FillTestDbHelper;
        }
예제 #9
0
        public FilesServiceTests()
        {
            TestsData testsData = TestsData.Create(nameof(FilesServiceTests));

            filesService     = testsData.AppServiceProvider.FilesService;
            fillTestDbHelper = testsData.FillTestDbHelper;
        }
예제 #10
0
        public PendingMessagesTests()
        {
            TestsData testsData = TestsData.Create(nameof(PendingMessagesTests));

            fillTestDbHelper       = testsData.FillTestDbHelper;
            pendingMessagesService = testsData.AppServiceProvider.PendingMessagesService;
        }
예제 #11
0
        public FavoritesTests()
        {
            TestsData testsData = TestsData.Create(nameof(FavoritesTests));

            fillTestDbHelper = testsData.FillTestDbHelper;
            favoritesService = testsData.AppServiceProvider.FavoritesService;
        }
예제 #12
0
        public LoadMessagesTests()
        {
            var testsData = TestsData.Create("LoadMessagesTests");

            fillTestDbHelper    = testsData.FillTestDbHelper;
            loadMessagesService = testsData.AppServiceProvider.LoadMessagesService;
        }
예제 #13
0
        public DeleteUsersTests()
        {
            var testsData = TestsData.Create(nameof(DeleteUsersTests));

            fillTestDbHelper   = testsData.FillTestDbHelper;
            deleteUsersService = testsData.AppServiceProvider.DeleteUsersService;
            loadUsersService   = testsData.AppServiceProvider.LoadUsersService;
        }
예제 #14
0
        public GroupsTests()
        {
            TestsData testsData = TestsData.Create(nameof(GroupsTests));

            fillTestDbHelper = testsData.FillTestDbHelper;
            groupsService    = testsData.AppServiceProvider.GroupsService;
            contactsService  = testsData.AppServiceProvider.ContactsService;
        }
예제 #15
0
        public TokensTests()
        {
            TestsData testsData = TestsData.Create(nameof(TokensTests));

            fillTestDbHelper         = testsData.FillTestDbHelper;
            tokensService            = testsData.AppServiceProvider.TokensService;
            verificationCodesService = testsData.AppServiceProvider.VerificationCodesService;
        }
예제 #16
0
        public UpdateUsersTests()
        {
            var testsData = TestsData.Create("updateUsersTests");

            fillTestDbHelper   = testsData.FillTestDbHelper;
            updateUsersService = testsData.AppServiceProvider.UpdateUsersService;
            loadUsersService   = testsData.AppServiceProvider.LoadUsersService;
        }
예제 #17
0
        public CreateMessagesTests()
        {
            var testsData = TestsData.Create(nameof(CreateMessagesTests));

            createMessagesService = testsData.AppServiceProvider.CreateMessagesService;
            fillTestDbHelper      = testsData.FillTestDbHelper;
            loadMessagesService   = testsData.AppServiceProvider.LoadMessagesService;
        }
예제 #18
0
        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;
        }
예제 #19
0
        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);
        }
예제 #20
0
        public CreateUsersTests()
        {
            var testsData = TestsData.Create(nameof(CreateUsersService));

            createUsersService = testsData.AppServiceProvider.CreateUsersService;
        }
        public VerificationCodesTests()
        {
            var testsData = TestsData.Create(nameof(VerificationCodesTests));

            verificationCodesService = testsData.AppServiceProvider.VerificationCodesService;
        }
예제 #22
0
 public AttachmentsTests()
 {
     TestsData testsData = TestsData.Create(nameof(AttachmentsTests));
     attachmentsService = testsData.AppServiceProvider.AttachmentsService;
     fillTestDbHelper = testsData.FillTestDbHelper;
 }
예제 #23
0
 public PollsTests()
 {
     TestsData testsData = TestsData.Create(nameof(PollsTests));
     fillTestDbHelper = testsData.FillTestDbHelper;
     pollsService = testsData.AppServiceProvider.PollsService;
 }