Ejemplo n.º 1
0
        public void TestFindUser()
        {
            IUserAccessor accessor = this._provider.GetService <IUserAccessor>();

            var ian  = accessor.FindUser("ian");
            var bill = accessor.FindUser("bill");

            Assert.NotEqual(ian, bill);

            Assert.Equal("Ian", ian.FirstName);
            Assert.Equal("Cottingham", ian.LastName);
            Assert.Equal("Seattle, WA", bill.Location);
            Assert.Equal("Lincoln, NE", ian.Location);
            Assert.Equal("Gates", bill.LastName);

            var otherian = accessor.FindUserByEmail("*****@*****.**");

            Assert.NotNull(otherian);
            Assert.Equal(ian, otherian);
            Assert.NotEqual(bill, otherian);
        }