We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does Smocks support MSpec ? Below is my attempt at using it in MSpec. I'm getting a null reference error on the line that says Smock.Run().
Smock.Run()
private Establish context = () => { SetupMocks(); }; private static void SetupMocks() { Smock.Run(context => { context.Setup(() => StorageUtils.GetContainer("ProximaFileStoreConnectionString", "templates")).Returns(BlobContainer("ProximaFileStoreConnectionString", "templates")); }); } private static CloudBlobContainer BlobContainer(string key, string containerName) { var connectionString = ConfigurationManager.ConnectionStrings[key].ConnectionString; var storageAccount = CloudStorageAccount.Parse(connectionString); var blobClient = storageAccount.CreateCloudBlobClient(); var container = blobClient.GetContainerReference(containerName); container.CreateIfNotExists(); var perm = new BlobContainerPermissions { PublicAccess = BlobContainerPublicAccessType.Blob }; container.SetPermissions(perm); return container; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Does Smocks support MSpec ? Below is my attempt at using it in MSpec. I'm getting a null reference error on the line that says
Smock.Run()
.The text was updated successfully, but these errors were encountered: