Example #1
0
        public async Task Call_authenticate_with_success()
        {
            using (var server = new FakeServer())
            {
                var reponse = await server.Authenticate("Aurélien", "1234");

                reponse.Should().BeTrue();
            }
        }
Example #2
0
        public async Task Add_new_period_with_authenticated_user()
        {
            using (var server = new FakeServer())
            {
                await server.Authenticate("Aurélien", "1234");

                var response = await server.CreatePeriod(1, 2000);

                response.Should().Be(HttpStatusCode.OK);
            }
        }
 public async Task GivenJeSuisConnecteALUtilisateurAurelienEtLeMotDePasse(string username, string password)
 {
     await FakeServer.Authenticate(username, password);
 }