コード例 #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
ファイル: QRCodesTests.cs プロジェクト: Ymessenger/ymessenger
        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
ファイル: TestsData.cs プロジェクト: Ymessenger/ymessenger
        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;
        }
コード例 #21
0
        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;
 }