public async Task GetById_ShouldFindSubscriber() { var subscriber = await SubscribersService.GetById(DefaultData.Subscribers.Maslov.Id); Assert.That(subscriber, Is.Not.Null); Assert.That(subscriber.Id, Is.EqualTo(DefaultData.Subscribers.Maslov.Id)); }
public async Task GetById_ShoulReturnNull() { var subscriber = await SubscribersService.GetById(int.MaxValue); Assert.That(subscriber, Is.Null); }