This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Compare operators tests * Removed mono.cecil, my bad * CompareOperators dates tests, aggregation tests * Refactor tests, my bad * Working on subset and net452 test * Helping Israel, because he doesn't know how to code.... * Process response subset test * Fix unit test run * Check Travis formats * Revert test and cleaning build (still not working in Travis) * Changed columns to have just one column date, travis ci test * Test date to see on travis * Travis test dates * Update CompareOperatorsTest.cs * Update Extensions.cs * Minor changes, date tests * Removed custom test * Checking test * Code Review * Upgrade samples * Refactor CompareOperatorsTest.cs * Corrected observations * Corrected observations * Added dateUTC and boolean filter tests * Changed Bool to IsShipped in tests * Compare operators tests * Removed mono.cecil, my bad * CompareOperators dates tests, aggregation tests * Refactor tests, my bad * Working on subset and net452 test * Helping Israel, because he doesn't know how to code.... * Process response subset test * Fix unit test run * Check Travis formats * Revert test and cleaning build (still not working in Travis) * Changed columns to have just one column date, travis ci test * Test date to see on travis * Travis test dates * Update CompareOperatorsTest.cs * Update Extensions.cs * Minor changes, date tests * Removed custom test * Checking test * Code Review * Upgrade samples * Refactor CompareOperatorsTest.cs * Corrected observations * Corrected observations * Added dateUTC and boolean filter tests * Changed Bool to IsShipped in tests * Fixed tests
- Loading branch information
Showing
20 changed files
with
295 additions
and
499 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using Unosquare.Net; | ||
using Unosquare.Labs.EmbedIO; | ||
using Unosquare.Labs.EmbedIO.Modules; | ||
using Unosquare.Tubular.ObjectModel; | ||
using Unosquare.Swan; | ||
|
||
namespace Unosquare.Tubular.EmbedioSample | ||
namespace Unosquare.Tubular.EmbedioSample | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using Labs.EmbedIO; | ||
using Labs.EmbedIO.Modules; | ||
using ObjectModel; | ||
using Swan; | ||
#if NETCOREAPP2_0 | ||
using System.Net; | ||
#else | ||
using Net; | ||
#endif | ||
|
||
/// <summary> | ||
/// A simple model representing a person | ||
/// </summary> | ||
|
@@ -32,13 +36,13 @@ public class PeopleController : WebApiController | |
|
||
public static List<Person> People = new List<Person> | ||
{ | ||
new Person() {Key = 1, Name = "Mario Di Vece", Age = 31, EmailAddress = "[email protected]"}, | ||
new Person() {Key = 2, Name = "Geovanni Perez", Age = 31, EmailAddress = "[email protected]"}, | ||
new Person() {Key = 3, Name = "Luis Gonzalez", Age = 29, EmailAddress = "[email protected]"}, | ||
new Person() {Key = 4, Name = "Ricardo Salinas", Age = 22, EmailAddress = "[email protected]"}, | ||
new Person {Key = 1, Name = "Mario Di Vece", Age = 31, EmailAddress = "[email protected]"}, | ||
new Person {Key = 2, Name = "Geovanni Perez", Age = 31, EmailAddress = "[email protected]"}, | ||
new Person {Key = 3, Name = "Luis Gonzalez", Age = 29, EmailAddress = "[email protected]"}, | ||
new Person {Key = 4, Name = "Ricardo Salinas", Age = 22, EmailAddress = "[email protected]"} | ||
}; | ||
|
||
[WebApiHandler(HttpVerbs.Post, RelativePath + "people")] | ||
[WebApiHandler(Labs.EmbedIO.Constants.HttpVerbs.Post, RelativePath + "people")] | ||
public bool GetPeople(WebServer server, HttpListenerContext context) | ||
{ | ||
try | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.