Пример #1
0
        public async Task EmailController_GetAll_ShouldReturn200Ok()
        {
            _emailServiceMock.Setup(_ => _.GetAllAsync()).ReturnsAsync(() => new List <EmailMessage>());

            var result = await _sut.GetAllMessages();

            Assert.IsInstanceOf <OkObjectResult>(result);
        }