public async Task NullReturnedWhenSkillIdNotInMessage() { var handler = new OrganizationDetailsQueryHandler(Context); var result = await handler.Handle(new OrganizationDetailsQuery()); Assert.Null(result); }
public async Task NullReturnedWhenSkillIdNotInMessage() { var handler = new OrganizationDetailsQueryHandler(Context); var result = await handler.Handle(new OrganizationDetailsQuery()); Assert.Null(result); }
public async Task NullReturnedWhenSkillIdDoesNotExists() { var handler = new OrganizationDetailsQueryHandler(Context); var result = await handler.Handle(new OrganizationDetailsQuery { Id = 100 }); Assert.Null(result); }
public async Task NullReturnedWhenSkillIdDoesNotExists() { var handler = new OrganizationDetailsQueryHandler(Context); var result = await handler.Handle(new OrganizationDetailsQuery { Id = 100 }); Assert.Null(result); }
public void Init() { organizations = Substitute.For <ISearch <Organization> >(); hander = new OrganizationDetailsQueryHandler(organizations) { Logger = Substitute.For <ILogger>() }; }
public async Task LockedCampaignsAreNotIncludedInTheResults() { var handler = new OrganizationDetailsQueryHandler(Context); var result = await handler.Handle(new OrganizationDetailsQuery { Id = 1 }); Assert.NotNull(result); Assert.Equal(3, result.Campaigns.Count); }
public async Task CorrectOrganizationReturnedWhenIdInMessage() { var handler = new OrganizationDetailsQueryHandler(Context); var result = await handler.Handle(new OrganizationDetailsQuery { Id = 1 }); Assert.NotNull(result); Assert.Equal("Org 1", result.Name); }
public async Task LockedCampaignsAreNotIncludedInTheResults() { var handler = new OrganizationDetailsQueryHandler(Context); var result = await handler.Handle(new OrganizationDetailsQuery { Id = 1 }); Assert.NotNull(result); Assert.Equal(3, result.Campaigns.Count); }
public async Task CorrectOrganizationReturnedWhenIdInMessage() { var handler = new OrganizationDetailsQueryHandler(Context); var result = await handler.Handle(new OrganizationDetailsQuery { Id = 1 }); Assert.NotNull(result); Assert.Equal("Org 1", result.Name); }