public static Path Build(Path basePath, String action) { PathBuilder builder = new PathBuilder { BasePath = basePath, Action = action, }; return builder.Build(); }
public static Path Build(Path basePath, String action) { PathBuilder builder = new PathBuilder { BasePath = basePath, Action = action, }; return(builder.Build()); }
public static Path Build(Path basePath, String action, DateTime initialDate, DateTime finalDate, String documentType = null) { PathBuilder builder = new PathBuilder { BasePath = basePath, Action = action, InitialDate = initialDate, FinalDate = finalDate, DocumentType = documentType }; return builder.Build(); }
public static Path Build(Path basePath, String action, DateTime initialDate, DateTime finalDate, String documentType = null) { PathBuilder builder = new PathBuilder { BasePath = basePath, Action = action, InitialDate = initialDate, FinalDate = finalDate, DocumentType = documentType }; return(builder.Build()); }
public void TestPathBuilder2() { var builder = new PathBuilder { BasePath = PathConstants.BasePathApiPrimavera, InitialDate = new DateTime(2014, 5, 10), FinalDate = new DateTime(2015, 10, 13) }; var actual = builder.Build().ToString(); var expected = PathConstants.BasePathApiPrimavera + "?initialDate=2014-05-10&finalDate=2015-10-13"; Assert.AreEqual(expected, actual); }