Esempio n. 1
0
		public async void CanCreatePoll()
		{
			var poll = new StrawPoll();
			var id = await poll.Create("Higgildy", new List<string> {"piggildy", "poo"});

			Assert.NotSame("", id);
		}
Esempio n. 2
0
		public async void CanFetchPoll()
		{
			var poll = new StrawPoll();
			var id = await poll.Create("Higgildy", new List<string> { "piggildy", "poo" });

			Assert.NotSame("", id);

			var pollModel = await poll.Fetch(id.Split('/').Last());
			Assert.NotNull(pollModel);
		}