public async Task NullReturnedWhenSkillIdNotInMessage() { var handler = new SkillEditQueryHandlerAsync(Context); var result = await handler.Handle(new SkillEditQueryAsync()); Assert.Null(result); }
public async Task NullReturnedWhenSkillIdDoesNotExists() { var handler = new SkillEditQueryHandlerAsync(Context); var result = await handler.Handle(new SkillEditQueryAsync { Id = 100 }); Assert.Null(result); }
public async Task NullReturnedWhenSkillIdNotInMessage() { var handler = new SkillEditQueryHandlerAsync(Context); var result = await handler.Handle(new SkillEditQueryAsync()); Assert.Null(result); }
public async Task NullReturnedWhenSkillIdDoesNotExists() { var handler = new SkillEditQueryHandlerAsync(Context); var result = await handler.Handle(new SkillEditQueryAsync { Id = 100 }); Assert.Null(result); }
public async Task CorrectSkillReturnedWhenIdInMessage() { var handler = new SkillEditQueryHandlerAsync(Context); var result = await handler.Handle(new SkillEditQueryAsync { Id = 4 }); Assert.NotNull(result); Assert.Equal("Skill 4", result.Name); }
public async Task CorrectSkillReturnedWhenIdInMessage() { var handler = new SkillEditQueryHandlerAsync(Context); var result = await handler.Handle(new SkillEditQueryAsync { Id = 4 }); Assert.NotNull(result); Assert.Equal("Skill 4", result.Name); }