public static void AssertSuite(SuiteResponse expected, SuiteResponse actual) { actual.Id.Should().BePositive(); actual.Name.Should().Be(expected.Name); actual.IsCompleted.Should().Be(expected.IsCompleted); actual.Description.Should().Be(expected.Description); actual.ProjectId.Should().Be(actual.ProjectId); actual.IsBaseLine.Should().BeFalse(); actual.IsMaster.Should().BeFalse(); actual.CompletedOn.Should().BeNull(); actual.Url.Should() .BeEquivalentTo($"{Startup.AppSettings.Services.TestRailApp.AppUrl}index.php?/suites/view/{actual.Id}"); }
SuiteResponse IConsultaService.ConsultarArchivadores() { try { List<Archivador> AllArch = Archivador.Consultar().ToList(); List<ArchivadorPoco> AllPoco = new List<ArchivadorPoco>(); foreach (Archivador Arch in AllArch) AllPoco.Add(new ArchivadorPoco(Arch)); SuiteResponse Result = new SuiteResponse(AllPoco); return Result; } catch (Exception Ex) { return new SuiteResponse("Ocurrio un error consultando los archivadores!", Ex); } }