public GetExpenseReportsByDate(GetReportByDateAndType getReportByDateAndType) { this.getReportByDateAndType = getReportByDateAndType; }
protected override void Context() { TestSession = Substitute.For<ISession>(); TestQuery = Substitute.For<GetReportByDateAndType>(); Sut = new ReportCache(TestSession, TestQuery); }
protected override void Context() { Sut = new GetReportByDateAndType(); }
public ReportCache(ISession session, GetReportByDateAndType getReportByDateAndType) { this.session = session; this.getReportByDateAndType = getReportByDateAndType; }
protected override void Context() { TestSession = Substitute.For<ISession>(); TestBaseQuery = Substitute.For<GetReportByDateAndType>(); Sut = new GetExpenseReportsByDate(TestBaseQuery); }