public MemberDataController(
     IMembershipDataRequest memberrequest,
     IMapper objectmapper)
 {
     _memberrequest = memberrequest;
     _objectmapper  = objectmapper;
 }
        public MembershipUnitTest()
        {
            var services = new ServiceCollection();

            services.AddScoped <IMembershipDataRequest, MembershipDataRequest>();
            services.AddDbContext <MembershipContext>(options => options.UseInMemoryDatabase("Test_In_Memory_DB"));

            var serviceProvider = services.BuildServiceProvider();

            _memberrequest = serviceProvider.GetService <IMembershipDataRequest>();
        }