public void SubscriptionsService_GetAll_result_not_null() { var mock = new Mock <IUnitOfWork>(); mock.Setup(a => a.Subscriptions.GetAll()).Returns(new List <Subscription>()); service = new SubscriptionsService(mock.Object); var result = service.GetAll(); Assert.IsNotNull(result); }