示例#1
0
        public void GetCostumersAsync_Test()
        {
            Mock <IOptions <DatabaseConfig> > optionsMock = new Mock <IOptions <DatabaseConfig> >();

            optionsMock.SetupGet(o => o.Value).Returns(new DatabaseConfig()
            {
                ConnectionString = "conString"
            });
            ICustomerQueries queries   = new CustomerQueries(optionsMock.Object);
            Task             queryTask = Task.Run(() => queries.GetCostumersAsync(0, 10));
        }