Exemplo n.º 1
0
        private static IDriverListTestAssert CreateAssert(DriverApiFilter filter)
        {
            switch (filter)
            {
            case DriverApiFilter.Activated:
                return(new DriverListActivatedTest());

            case DriverApiFilter.Deactivated:
                return(new DriverListDeactivatedTest());

            case DriverApiFilter.Invited:
                return(new DriverListInvitedTest());

            case DriverApiFilter.OnlineNow:
                return(new DriverListOnlineNowTest());

            default:
                return(new DriverListAllTest());
            }
        }
Exemplo n.º 2
0
 public DriverListTest(DriverApiFilter filter)
 {
     Filter = filter;
 }
 public void ListAsync(DriverApiFilter filter)
 {
     new DriverListTest(filter).RunAsync();
 }
 public void List(DriverApiFilter filter)
 {
     new DriverListTest(filter).Run();
 }