internal PartidaBuilder ComEmpateNota() { decimal notaEmpate = UtilFaker.Nota(); _desafiante = _filmeModelFaker.ComNota(notaEmpate).Generate(); _desafiado = _filmeModelFaker.ComNota(notaEmpate).Generate(); return(this); }
public FilmeModelFaker ExcludeNota(params decimal[] nota) { RuleFor(c => c.Nota, r => UtilFaker.Nota(nota)); return(this); }
public FilmeModelFaker() { RuleFor(c => c.Id, r => r.Random.Guid().ToString()) .RuleFor(c => c.Nota, r => UtilFaker.Nota()) .RuleFor(c => c.Ano, r => r.Random.Int(DateTime.MinValue.Year, DateTime.Today.Year)); }