public async Task <List <short> > HandleAsync(GetAatfComplianceYearsByAatfId message) { authorization.EnsureCanAccessInternalArea(); return(await aatfDataAccess.GetComplianceYearsForAatfByAatfId(message.AatfId)); }
public async Task HandleAsync_GivenRequest_GetComplianceYearsForAatfByAatfIdShouldBeCalled() { var result = await handler.HandleAsync(A.Dummy <GetAatfComplianceYearsByAatfId>()); A.CallTo(() => dataAccess.GetComplianceYearsForAatfByAatfId(A.Dummy <Guid>())).MustHaveHappened(Repeated.Exactly.Once); }