public WatchServiceShould() { PHONE = "NEW_PHONE"; context = new MockDbContextFactory().CreateDbContext(null); context.Requests.Add(new RequestRecord { Id = 0, RequestId = "abc", TwilioBinding = new Guid().ToString(), Price = 10 }); mockTwilio = new MockTwilioService(context, "", "", ""); mockAlpha = new MockAlphaVantageService(""); mockLimitCount = new LimitCountService(context); mockService = new MockWatchService(context, mockTwilio, mockAlpha, mockLimitCount); mockStock = new Stock { Symbol = "msft", Phone = PHONE, Price = 1.99 }; }
public QueryCompanyServiceShould() { context = new MockDbContextFactory().CreateDbContext(null); service = new QueryCompanyService(context); var baseCompany = new Company { }; mockCompanies = new List <Company> { new Company { Symbol = "MSFT", Name = "Microsoft" }, new Company { Symbol = "AMSF", Name = "Amerisafe" }, new Company { Symbol = "MSFG", Name = "Main Source Financial Group" } }; context.Companies.AddRange(mockCompanies); context.SaveChanges(); }