Пример #1
0
        public void CanReturnHolerDataForExistingMoniker()
        {
            var holderDataService = new MockHolderData();
            var holder            = holderDataService.GetHolderData("mock");

            Assert.NotNull(holder);
        }
Пример #2
0
        public void LoadTestHolder()
        {
            try
            {
                var connectionString = "Data Source = (localdb)\\MSSQLLocalDB; Initial Catalog = BaseInfo";
                _provider = new SqlHolderDataProvider(connectionString, new SqlLogDataRepository(connectionString));
                var holderDataService = new MockHolderData();
                var holder            = holderDataService.GetHolderData(Moniker);
                holder.Id = TestHolderId;

                _provider.AddHolder(holder);
            }
            catch
            { }
        }