Exemple #1
0
        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));
        }
Exemple #2
0
        public async Task GetById_ShoulReturnNull()
        {
            var subscriber = await SubscribersService.GetById(int.MaxValue);

            Assert.That(subscriber, Is.Null);
        }