public void IsValid_ShouldBeTrue_QueryValid() { var query = new GetPinnedTaskItemListQuery { TeamId = Guid.NewGuid() }; var validator = new GetPinnedTaskItemListQueryValidator(); var result = validator.Validate(query); result.IsValid.ShouldBe(true); }
public void IsValid_ShouldBeFalse_WhenTeamIdIsEmpty() { var query = new GetPinnedTaskItemListQuery { TeamId = Guid.Empty }; var validator = new GetPinnedTaskItemListQueryValidator(); var result = validator.Validate(query); result.IsValid.ShouldBe(false); }